/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

function eliminaConsejo(id){
    $.ajax({
        url: 'ControlAdminConsejo', 
        type: 'POST',
        dataType: 'json',
        data: {
            metodo:     "eliminar",
            idEliminado:   id
        },
        success: 
            function(data) {
            console.log(id);
                var sURL = "ControlAdminConsejo?metodo=vacio";
                    window.location.replace( sURL );
            },
        error:
            function(xhr, ajaxOptions, thrownError){
                alert('ERROR ' + xhr.responseText);
            }
    });
}


